﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="PersonalMain.aspx.cs" Inherits="Web.PersonalMain" %>
<html>
<head>
    <title></title>
    <meta http-equiv="Content-Type" content="text/html; charset=gb2312">
    <link rel="icon" href="Images/favicon.ico" type="image/x-icon" />
    <link rel="shortcut icon" href="Images/favicon.ico" type="image/x-icon" />
    <link href="Styles/IframeMain.css" rel="stylesheet" type="text/css" />
</head>
<body>
    <table cellpadding="0" cellspacing="0" summary="太阳神网站" class="main">
        <tr>
            <td style="width: 200px">
                <div id="frameLeft" name="frameLeft" class="t_l" style="left: 0px">
                    <div class="t_l_bor">
                        <div class="t_l_c">
                            <table cellpadding="0" cellspacing="0" summary="太阳神网站" class="left">
                                <tr>
                                    <td id="Menu_iframe" class="f_nav">
                                        <iframe src="PersonalMenu.aspx" id="menuContent" name="menuContent" width="100%" height="100%" marginwidth="0" marginheight="0" frameborder="0"></iframe>
                                    </td>
                                </tr>
                            </table>
                            <div title="关闭菜单" id="frameBar" class="bar_c" onmousedown="leftMenuMove();return false;" onfocus="if(this.blur)this.blur()">关闭菜单</div>
                            <script language="javascript" type="text/javascript">

                                var fState = -1;

                                var maxNum = 200;

                                var minNum = 12;

                                var fDelay = 16;

                                var menuFirst = true;

                                var closeTime;

                                var frameTime;

                                var frameObj = document.getElementById("frameLeft");

                                function leftMenuMove() {

                                    menuFirst = false;

                                    var maxLeft = maxNum - minNum;

                                    var fLeft = parseInt(frameObj.style.left);

                                    if (fState < 0) {

                                        fLeft += fDelay * fState;

                                        if (fLeft < (-maxLeft)) { fLeft = -maxLeft; }

                                        if (fLeft > 0) { fLeft = 0; }

                                        if (fLeft <= 0 && fLeft >= (-maxLeft)) {

                                            frameObj.style.cssText = "left:" + fLeft + "px";

                                            if (fLeft < 0 && fLeft > (-maxLeft)) {

                                                if (frameTime) { window.clearTimeout(frameTime); }

                                                frameTime = setTimeout("leftMenuMove();", 20);

                                                return;

                                            }

                                        }

                                        frameObj.parentNode.style.cssText = "width:" + minNum + "px";

                                    } else {

                                        frameObj.style.cssText = "left:0px";

                                        frameObj.parentNode.style.cssText = "width:" + maxNum + "px";

                                    }
                                    document.getElementById("frameBar").className = (fState < 0) ? "bar_o" : "bar_c";

                                    document.getElementById("frameBar").title = (fState < 0) ? "打开菜单" : "关闭菜单";

                                    fState *= -1;

                                }

                                function closeLeftMenu(num) {

                                    if (!menuFirst) { return; }

                                    if (fState == -1 && !parseInt(frameObj.style.left)) {

                                        if (num == 1) {

                                            frameObj.style.cssText = "left:0px";

                                            frameObj.parentNode.style.cssText = "width:" + maxNum + "px";

                                            if (frameTime) { window.clearTimeout(frameTime); }

                                        } else {

                                            closeTime = setTimeout('closeLeftMenu(1);', 600);

                                        }

                                    }

                                }
                            </script>
                        </div>
                    </div>
                </div>
            </td>
            <td class="t_r">
                <iframe width="100%" height="100%" frameborder="0" marginwidth="0" marginheight="0" src="PersonalList.aspx" name="mdi"></iframe>
            </td>
        </tr>
    </table>
</body>
</html>